import request from '@/utils/request'

// 查询飞书配置列表
export function listFlying_book(query) {
    return request({
        url: '/system/flying_book/list',
        method: 'get',
        params: query
    })
}

// 查询飞书配置详细
export function getFlying_book(id) {
    return request({
        url: '/system/flying_book/' + id,
        method: 'get'
    })
}

//
export function getsubstation() {
    return request({
        url: '/system/public/getsubstation',
        method: 'get'
    })
}

// 新增飞书配置
export function addFlying_book(data) {
    return request({
        url: '/system/flying_book',
        method: 'post',
        data: data
    })
}

// 修改飞书配置
export function updateFlying_book(data) {
    return request({
        url: '/system/flying_book',
        method: 'put',
        data: data
    })
}

// 删除飞书配置
export function delFlying_book(id) {
    return request({
        url: '/system/flying_book/' + id,
        method: 'delete'
    })
}